<?php
include_once("include/include.php.inc");

list($status, $user) = auth_get_status();
html_header("User panel");
echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n"; 
if($status == AUTH_LOGGED){



echo "<h2><p align=\"center\" ><a href=\"ticket_show.php\">View and add tickets</a></p>\n<h2>";

echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 
echo "\n";

echo "<br>";

echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n";  
echo "<h2><p align=\"center\" ><a href=\"closed_ticket_show.php\">View closed tickets</a></p>\n</h2>"; 
echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 
echo "\n";

}
else{
echo "<center><h2>You must log in First</h2></center>";
echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 
echo "\n";
}
html_footer();
?>